package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.SourceService;
import com.terren.spider.entity.core.Source;
@Service("sourceService")
public class SourceServiceImpl extends BasicServiceSupportImpl implements SourceService{
	private final String SQL_MAPPER = "sourceMapper.";

	@Override
	public List<Source> getSourceList(String act) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getSourceList", act);
	}

	@Override
	public Source getSourceIdByName(String sourceName) throws Exception {
		return basicDao.findForObject(SQL_MAPPER+"getSourceIdByName", sourceName);
	}


}
